#ifndef TCP_SERVER_H
#define TCP_SERVER_H

#include "types.h" 
#include <uv.h> 

class inet_address;

class tcp_server {
public:
    MAKE_NONCOPYABLE(tcp_server);

    tcp_server(uv_loop_t *loop, int backlog, u16 port, const fn_on_connection& fn);
    virtual ~tcp_server();

private:
    uv_loop_t *loop_;
    inet_address addr_;
};

#endif // TCP_SERVER_H 
